package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.CostView
import hlhj.fhp.checkpoint.javaBean.CostBean
import hlhj.fhp.checkpoint.module.CostModule

/**
 * Created by Never Fear   on 2018\11\9 0009.
Never More....
 */
class CostPresenter :BasePresenter<CostModule,CostView>(), CostModule.CostResp {
    override fun getCostDetailResp(costBean: CostBean) {
        view?.setCostDetail(costBean)
    }

    fun getCostDetail(id:Int,page:Int,c:Context){
        module?.getCostDetail(id, page,c)
    }
    override fun createModule() {
        module=CostModule()
        module.listener=this
    }
}